RM=-rm -f

CXX=g++
CXXFLAGS=-D__GCC_ -O2 -m32


LIBS=libHiredis/libhiredis.a

TARGET=libHiredis.so

SRC_FILES=$(wildcard libHiredis/*.cpp)

OBJ_FILES=$(SRC_FILES:.cpp=.o)

$(TARGET):$(OBJ_FILES)
	$(CXX) -fPIC -shared -o $(TARGET) $(OBJ_FILES) $(LIBS) $(CXXFLAGS) -static


.PHONY:clean

clean:
	$(RM) $(TARGET) $(OBJ_FILES)
